package cn.com.darly.videoandroidpm.base;

import android.os.Environment;

import cn.com.darly.videoandroidpm.BuildConfig;
import cn.com.darly.videoandroidpm.common.SystemLoginInfo;


/** 自定义常量类
 * @author Darly/张宇辉/2018/1/2 9:55
 * @version 1.0/com.xiangxun.platform.base
 */
public final class BaseCons {
    /**
     * 获取请求的地址和端口
     * @return 返回请求地址
     */
    public static String getRequestUrl() {
        return "http://" + SystemLoginInfo.getServerIP() + ":" + SystemLoginInfo.getServerPort()+"/pm/mobile/";
    }

    private static String root = Environment.getExternalStorageDirectory() + "/pm/";
    private static String image = root.concat("image/");
    private static String video = root.concat("video/");

    public static String getImage() {
        return image;
    }

    public static String getVideo() {
        return video;
    }


    //可以设置的参数
    public static final String PREVIEW_SIZE_RATIO = "PreviewSizeRatio";
    public static final String PREVIEW_SIZE_LEVEL = "PreviewSizeLevel";
    public static final String ENCODING_MODE = "EncodingMode";
    public static final String ENCODING_SIZE_LEVEL = "EncodingSizeLevel";
    public static final String ENCODING_BITRATE_LEVEL = "EncodingBitrateLevel";
}
